package cn.kgc.vue.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName student
 */
@TableName(value = "student")
@ExcelTarget("student")
@Data
public class Student implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 学生姓名
     */
    @Excel(name = "姓名", orderNum = "1")
    private String name;

    /**
     * 年龄
     */
    @Excel(name = "年龄", orderNum = "2")
    private Integer age;

    /**
     * 班级
     */
    @Excel(name = "班级", orderNum = "3")
    private String clazz;

    /**
     * 课程编号
     */
    @Excel(name = "课程编号", orderNum = "4")
    private Integer courseId;

    /**
     * 入学时间
     */
    @Excel(name = "入学时间", importFormat = "yyyy-MM-dd", exportFormat = "yyyy-MM-dd", orderNum = "5")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date schoolYear;

    /**
     * 学号
     */
    @Excel(name = "学号")
    private String studentNo;


    /*
     * 手机号
     */
    @Excel(name = "手机号", orderNum = "6")
    private String tel;

    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}